Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ayamir main #27

Merged
merged 24 commits into from
Sep 22, 2023
Merged

ayamir main #27

merged 24 commits into from
Sep 22, 2023

Conversation

TonyWu20
Copy link
Owner

misumisumi and others added 24 commits August 25, 2023 18:10
…erience (ayamir#931)

* feat(utils): Add `load_plugin` function

* feat(pack.lua): Added loading of user custom plugins

* feat(ui): Changes to `load_plugin()`

* feat(tool): Changes to `load_plugin()`

* feat(editor): Changes to `load_plugin()`

* feat(lang): Changes to `load_plugin()`

* feat(completion): Changes to `load_plugin()`

* feat(keymap): Adding user overrides for keymap

* feat(pack): Add `lua/user/modules/configs` to package.path (WARNING: Don't create a file with the same name as `lua/modules/configs`)

* feat(event): Supports user-defined events

* feat(options): Supports user-defined options

* feat(settings): Supports user-defined settings

* hotfix(pack): Incorrect value is added when there is no user-defined plugin

* Revert "feat(keymap): Adding user overrides for keymap"

This reverts commit b127042.

* feat(keymap): Defining user keymaps with the override function introduced in 372d3c9

* feat(keymap): Support unset keymap.

* Apply suggestions from code review

Co-authored-by: 冷酔閑吟 <50296129+Jint-lzxy@users.noreply.github.com>
Signed-off-by: MiSumiSumi <dragon511southern@gmail.com>

* fix(pack): Change user_module_dir location and implement 'string:sub' according to module location

* hotfix(utils): Fixed a bug that could not be loaded when vimscript plugins were overridden.

* feat(utils): Create `config_extend` function

* add(user): Create user config directory

* feat(keymap): add `keymap.replace` function

* add(user/keymap): Create user config directory for keymap

* fix: cleanups & fixups

* chore: remove unused function

* feat(pack): add custom loader for user plugin config

* feat(pack): add `disabled_plugins` to settings

* update(.gitignore): add `lua/user`

* fix(utils): Fixed an issue where lists with values were replaced instead of expanded

* feat(lsp): Support user override for lsp settings

* feat(utils): add `load_config()` to resolve and load `user.configs`

* Revert "feat(utils): add `load_config()` to resolve and load `user.configs`"

This reverts commit f95d110.

* feat(modules/keymap): just remove the keymap

* refactor(mason-*): Separating `mason-*` from `lspconfig` and `null-ls`

* feat(mason_*_handler): If there is a user definition, it is read with priority

* fix(pack): Abolish custom loader and add `lua/user` to rtp

* add(user): Make `lsp-servers` and `dap-clients` directory

* fix(user/keymap): Add override `core.keymap`

* rename: Move `lsp-servers` and `dap-clients` under `user/configs`

* chore: update comments

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* chore: update comments

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* chore: cleanup

* style: Change position of user override

* feat(issue template): add user config debug template

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* chore(issue template): fix new template

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* fix template

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* test fix

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* fix(issue template): syntax error

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* fix(issue template): syntax error 

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* fixup(ISSUE_TEMPLATE): fix formatting&linting issues

* fixup(IS_TEMPL): proper redirections to correct template

* fix merge conflicts

* feat: add colorscheme setting to example user settings.

Signed-off-by: ayamir <lgt986452565@gmail.com>

* feat: update tutor and settings.

Signed-off-by: ayamir <lgt986452565@gmail.com>

---------

Signed-off-by: MiSumiSumi <dragon511southern@gmail.com>
Signed-off-by: Charles Chiu <charleschiu@hey.com>
Signed-off-by: ayamir <lgt986452565@gmail.com>
Co-authored-by: 冷酔閑吟 <50296129+Jint-lzxy@users.noreply.github.com>
Co-authored-by: Charles Chiu <charleschiu@hey.com>
Co-authored-by: ayamir <lgt986452565@gmail.com>
* Change 'lua/user' to 'lua/user_template'

* Auto generate 'lua/user' in the install script
This commit considers the following extreme cases:
* `lua/user` cannot be opened or modified.
  * Solution: Force overwrite w/ `-Force` or `-f`

* Recent macOS distributions shipped an implementation that is
incompatible with **both** BSD and GNU `cp`.
  * Solution: Make it compatible (`-fRpP`)

* Since Lua's file loader takes the current directory into account
(w/ the highest priority), switching to `lua/user` before spawning
`nvim` for the first time may result in extremely "covert" bugs.
Therefore, IMO it is best to just remove this line of instruction.
1. In fact, `catppuccin` is enough for `nvimdots`.
2. Users could install other colorschemes by themselves.
3. There are several different versions of `nord` theme, users have the right to install which of them.
* feat(completion): use gofumpt to format Go code, run goimports on save

* chore(deps): sort null_ls deps

---------

Co-authored-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
Neodim's recent updates introduced/utilized some of `nvim 0.10`'s APIs,
which might be a source of trouble for nvim 0.9.*, so IMO we'd better
pin `neodim` to v2.0 to avoid potential issues :D
@TonyWu20 TonyWu20 merged commit 437fb60 into main Sep 22, 2023
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants